<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
		<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
	</head>

	<body>
		<div class="layui-container">
			<form class="layui-form" action="/droolsRule/post" method="post">
				<input type="hidden" name="id" th:value="${droolsRule.id}">
			  <div class="layui-form-item">
			    <label class="layui-form-label">业务场景</label>
			    <div class="layui-input-block">
			      <input type="text" name="ruleFor" required  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input" 
			      	th:value="${droolsRule.ruleFor}">
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">规则内容</label>
			    <div class="layui-input-block">
			      <textarea name="drlContent" placeholder="请输入内容" class="layui-textarea" style="height: 400px;"
			      	th:text="${droolsRule.drlContent}"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
			  </div>
			</form>
		</div>

		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
		  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
		  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
		<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
		<script src="https://www.layuicdn.com/layui/layui.js"></script>
		
		<!--您的Layui代码start-->
		<script type="text/javascript" th:inline="javascript">
			layui.use(['layer', 'table', 'form', 'laydate', 'element', 'upload'], function() {
				var layer = layui.layer,
					table = layui.table,
					form = layui.form,
					laydate = layui.laydate,
					element = layui.element,
					upload = layui.upload;

				/*layer弹出一个示例*/
				//layer.msg('Hello World');
				
				
				form.render(); //更新全部
				
			});
		</script>
	</body>
</html>